#ifndef WIDGETSLIDERCOULEUR_H
#define WIDGETSLIDERCOULEUR_H

#include <QDockWidget>
#include "mainwindow.h"
#include "fenetreimage.h"


namespace Ui {
    class WidgetSliderCouleur;
}

class WidgetSliderCouleur : public QDockWidget
{
    Q_OBJECT

public:
    explicit WidgetSliderCouleur(QWidget *parent = 0);
    ~WidgetSliderCouleur();
    void paintEvent(QPaintEvent *);

private slots:
    void on_sliderrouge_valueChanged(int value);
    void on_slidervert_valueChanged(int value);
    void on_sliderbleu_valueChanged(int value);
    void on_slidercyan_valueChanged(int value);
    void on_slidermagenta_valueChanged(int value);
    void on_sliderjaune_valueChanged(int value);


    void on_sliderlum_valueChanged(int value);
    void on_sliderteinte_valueChanged(int value);
    void on_slidersaturation_valueChanged(int value);

    void on_annuler_clicked();

    void on_appliquer_clicked();

private:
    Ui::WidgetSliderCouleur *ui;
    MainWindow* mw;
    Calque* calque;
    QImage* copy;
    FenetreImage* fi;

    void razVal();
};

#endif // WIDGETSLIDERCOULEUR_H







